package yf.mall.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import yf.mall.dao.MallCardDao;
import yf.mall.entity.MallCardEntity;
import yf.mall.service.MallCardService;
import com.yf.service.impl.BaseServiceImpl;

/**
 * Service实现类
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Mon Apr 13 15:35:23 CST 2020
 */
@Service
public class MallCardServiceImpl extends BaseServiceImpl<MallCardEntity> implements MallCardService {

    private MallCardDao mallCardDao;


    @Autowired
    public void setDao(MallCardDao mallCardDao) {
        this.mallCardDao = mallCardDao;
        super.setBaseDao(mallCardDao);
    }


    /**
     *
     *   @Override
     *     public List<UserVo> queryListVo(UserVo userVo) {
     *         return userDao.queryListVo(userVo);
     *     }
     *
     *     @Override
     *     public UserVo getVo(Long id) {
     *         return userDao.getVo(id);
     *     }

     @Override
     List<MallCardVo> queryListVo(MallCardVo mallCardVo){
            return mallCardDao.queryListVo(mallCardVo);
     }

     @Override
     MallCardVo getVo(Long id){
                return mallCardDao.getVo(id);
    }

     **/


    /**内部方法**/



    /**外部方法实现**/

    @Override
    public MallCardEntity findByCode(String code) {
        return mallCardDao.findByCode(code);
    }
}
